<!DOCTYPE html>
<html>
<head>
  <title>Dispatcher</title>
  <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
  <![endif]-->
  <%= stylesheet_link_tag    "application", :media => "all" %>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div class="container">

<%= render "layouts/navigation" %>

<div class="row">
  <div class="span12">
    <% if flash[:alert] %>
    <div class="alert">
      <button type="button" class="close" data-dismiss="alert">×</button>
      <strong>Warning!</strong> <%= flash[:alert] %>
    </div>
    <% end %>

    <% if flash[:notice] %>
    <div class="alert alert-success">
      <button type="button" class="close" data-dismiss="alert">×</button>
      <strong>Success!</strong> <%= flash[:notice] %>
    </div>
    <% end %>

    <% if flash[:info] %>
    <div class="alert alert-info">
      <button type="button" class="close" data-dismiss="alert">×</button>
      <strong>Info!</strong> <%= flash[:info] %>
    </div>
    <% end %>

    <% if flash[:error] %>
    <div class="alert alert-error">
      <button type="button" class="close" data-dismiss="alert">×</button>
      <strong>Error!</strong> <%= flash[:error] %>
    </div>
    <% end %>
    
    <%= yield %>

  </div>
  <%= 
  #render 'layouts/side_bar' 
  %>
  </div>
</div>
</body>
</html>
